﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PACKETPARSERMAX20.CORE
{
    public static class ReaderHelper
    {

        public static ReaderBase GetReaderForFile(string pFileName)
        {
            return new ReaderSniffitzSQLite(pFileName);
            //string ext = System.IO.Path.GetExtension(pFileName);

            //switch (ext)
            //{
            //    case ".sqlite":
            //        {

            //            if (ReaderSniffitzSQLite.IsValid(pFileName)) { return new ReaderSniffitzSQLite(pFileName); }
            //            else if (ReaderSniffitzSQLiteOLD.IsValid(pFileName)) { return new ReaderSniffitzSQLiteOLD(pFileName); }
            //            //if (x.IsValid(pFileName)) { return new x(pFileName); }
            //        } break;
            //    case ".conv":
            //        {
            //            //if (x.IsValid(pFileName)) { return new x(pFileName); }

            //        } break;
            //}

            //return null;

        }
    }
}
